package com.warren.blog.test;

/**
 * @author warren
 */
public class InnerClass {
    public int Age;
    public void sayHello() {
        String name = "pwz";
        System.out.println("say hello");

        //局部內部类
        class innerClass {
            public void hello() {
                System.out.println(name + "你好");
            }
        }

        innerClass aClass = new innerClass();
        aClass.hello();
    }

    /**
     * 成员内部类
     */
    public class memberInnerClass {
        public void say() {
            System.out.println("成员內部类");
        }
    }
}